<html>
 
<head>
<title>JavaScript Demo</title>
<script type="text/javascript">
function run() {
    var c = document.getElementById("content");
    var n = document.createElement("p");
    var datab = ["John", "Mary", "Tony"];
    var messsage;
     
    for (message in datab) {
        n.appendChild(document.createTextNode(message + ": "));
        n.appendChild(document.createTextNode(datab[message]));
        n.appendChild(document.createElement("br"));
        c.appendChild(n);
    }
}
</script>
</head>
 
<body>
<input id="b" type="button" value="RUN" onclick="run();">
<div id="content"></div>
</body>
 
</html
